﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XingFuStudio.Pioneer.Applications.City.Shop {
    /// <summary>
    /// 商品工厂
    /// </summary>
    public class ShopFactory {
        /// <summary>
        /// 获取商品信息类
        /// </summary>
        /// <param name="shopType"></param>
        /// <returns></returns>
        public static ShopItem CreateShop(ShopType shopType) {

            switch (shopType) {
                case ShopType.Farm:
                    return new FarmShopInfo();
                case ShopType.Residence:
                    return new ResidenceShopInfo();
                case ShopType.Gray:
                    return new GrayShopInfo();
                default:
                    return new ShopItem();
            }
        }
    }
}
